Smart Buttons
Controls/XML Elements

File Operation <FileOperation>

The control can applies to text files such as .txt or .csv. The control can:

  • Write to a text file.

  • Read from a text file.

  • Append text to an existing file.

Configuring

It is recommended to configure using the File Operation XML Generator.

To configure with the File Operation XML Generator:
  1. Open the Smart Buttons Editor to create a script.

  2. Click File Operation <FileOperation> to display the File Operation XML Generator.

  3. Click the Mode arrow to select the desired action.

    • Read to read from existing file content.

    • Write to create a new file and write text to the file, or to overwrite text to an existing file.

      • Append to modify an existing file by adding the text at the end of the file.

      • Exists to modify an existing file by adding the text at the end of the file.

  4. Click SUBMIT.